package com.hkzhao.reportingsystem.dao;

import com.hkzhao.reportingsystem.mbg.model.Case;
import com.hkzhao.reportingsystem.mbg.model.City;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

//自定义dao
@Mapper
public interface ReportSystemDao {
    void updateStarsByCommentId(@Param("comment_id")String comment_id,
                                @Param("stars") int stars);
    List<Map<String,Integer>> orderByGender();
    List<Map<String,Integer>> orderByLevel();
    List<Integer> orderByAge();
    List<City> getOrderByCity();
    Integer getTotalMember(@Param("degree") String degree);
}
